package net.zjitc.service.Impl;

import net.zjitc.dao.Impl.UserDaoImpl;
import net.zjitc.dao.UserDao;
import net.zjitc.pojo.User;
import net.zjitc.service.UserService;

import java.util.List;

/**
 * Created by dell on 2017/11/18.
 */
public class UserServiceImpl implements UserService {
    UserDao dao=new UserDaoImpl();

    public List<User> findAllUser() {
        return dao.findAllUser();
    }

    public void userDelete(String uid) {
        dao.userDelete(uid);
    }

    public void userRegister(User user) {
        dao.userRegister(user);
    }

    public Boolean checkUsername(String username) {
        return dao.checkUsername(username);
    }

    public User findByCode(String code) {
        return dao.findByCode(code);
    }

    public void update(User user) {
        dao.update(user);
    }


}
